﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Marmat.Common
{
    /// <summary>
    /// 报表服务
    /// </summary>
    public interface IReportService
    {
        /// <summary>
        /// 报表名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 加载报表
        /// </summary>
        /// <param name="name"></param>
        void Load(string name);

        /// <summary>
        /// 注册数据
        /// </summary>
        /// <param name="data">数据表</param>
        /// <param name="name">表名</param>
        void RegisterData(DataTable data, string name);

        /// <summary>
        /// 注册数据
        /// </summary>
        /// <param name="data">数据集</param>
        void RegisterData(DataSet data);

        /// <summary>
        /// 设计
        /// </summary>
        void Design();

        /// <summary>
        /// 预览
        /// </summary>
        void Preview();

        /// <summary>
        /// 打印
        /// </summary>
        void Print();
    }
}
